﻿using System;
using UnityEngine;

public class NetworkServerOnlyComponents : MonoBehaviour
{
    public Component[] components;

    private void Awake()
    {
        if (!NetworkUtility.isServer)
        {
            foreach (Component component in this.components)
            {
                UnityEngine.Object.Destroy(component);
            }
        }
    }
}

